package factory.abstractfactory;

public class LDFactory implements AbsFactory {

    @Override
    public Pizza createPizza(String type) {
        if (type.equals("cheese")) {
            return new LDCheesePizza();
        } else if (type.equals("pepper")) {
            return new LDPepperPizza();
        }
        return null;
    }

}
